-- GENERATED SPELL FOR [Dawnblade Blood Knight] --


function spell0_24976(pUnit, Event) --@Holy Light,Heal--
pUnit:FullCastSpellOnTarget(13952,pUnit)
pUnit:RegisterEvent('Sorts_24976', 2500, 1)
end

function spell1_24976(pUnit, Event) --@Joust,n/a--
pUnit:FullCastSpellOnTarget(45105,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24976', 685, 1)
end

function spell2_24976(pUnit, Event) --@Judgement of Wrath,n/a--
pUnit:FullCastSpellOnTarget(45337,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24976', 15000, 1)
end

function spell3_24976(pUnit, Event) --@Seal of Wrath,Self--
pUnit:FullCastSpellOnTarget(45095,pUnit)
pUnit:RegisterEvent('Sorts_24976', 30000, 1)
end

function Sorts_24976(pUnit, Event)
local choix_sorts_24976 = math.random(0, 3)
if choix_sorts_24976 == 0 then
pUnit:RegisterEvent('spell0_24976', 1, 1)
end
if choix_sorts_24976 == 1 then
pUnit:RegisterEvent('spell1_24976', 1, 1)
end
if choix_sorts_24976 == 2 then
pUnit:RegisterEvent('spell2_24976', 1, 1)
end
if choix_sorts_24976 == 3 then
pUnit:RegisterEvent('spell3_24976', 1, 1)
end
end

function mob24976_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24976', math.random(1500, 3000), 1)
end

function mob24976_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24976_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24976_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24976, 1, 'mob24976_Action')
RegisterUnitEvent(24976, 2, 'mob24976_Leave')
RegisterUnitEvent(24976, 3, 'mob24976_Kill')
RegisterUnitEvent(24976, 4, 'mob24976_Die')
